package com.amrit.autowiring;

public class A {
	private B b1;
	private String name;

	public B getB() {
		System.out.println("Getter of B");
		return b1;
	}
	public void setB(B b2) {
		System.out.println("Setter of B");
		this.b1 = b2;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}

	public void doStuffA() {
		System.out.println("doStuff of A");
		b1.doStuffB();
	}
}